#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
typedef void (^YHRetryBlock)(void);
typedef NS_ENUM(NSInteger, YHViewStatusType) {
    YHViewStatusTypeEmptyData = 1,
    YHViewStatusTypeEmptyFollow,
    YHViewStatusTypeEmptyGuard,
    YHViewStatusTypeEmptyLike,
    YHViewStatusTypeEmptyNotice,
    YHViewStatusTypeEmptySearch,
    YHViewStatusTypeNetWorkError,
};


@interface UIView (XMPlaceholder)

- (void)showStatusView:(YHViewStatusType)type;

- (void)showStatusView:(YHViewStatusType)type
               spacing:(CGFloat)spacing;

- (void)showStatusView:(YHViewStatusType)type
               spacing:(CGFloat)spacing
            retryBlock:(void (^_Nullable)(void))retryBlock;

- (void)hideStatusView;

- (void)showNetWorkErrorView:(void (^_Nullable)(void))retryBlock TopSpacing:(CGFloat)topSpacing;

- (void)hideNetWorkErrorView;

@property (nonatomic, strong) UIView *statusView;
@property (nonatomic, strong) UIImageView *statusImageView;
@property (nonatomic, strong) UILabel *statusTitleLabel;
@property (nonatomic, strong) UIButton *retryButton;
@property (nonatomic, strong) UIView *lineView;

@property (nonatomic, copy) YHRetryBlock retryBlock;
@property (nonatomic, assign) YHViewStatusType statusType;
@end
NS_ASSUME_NONNULL_END
